export const ColumnProps = [
    {
        title: '组织/部门/职务名',
        dataIndex: 'name',
        width: 400,
        ellipsis: true
    },
    {
        title: '编码',
        dataIndex: 'code',
        width: 200,
        ellipsis: true
    },
    {
        title: '类型',
        dataIndex: 'type',
        width: 200,
        ellipsis: true
    },
    {
        title: '部门/班组编号',
        dataIndex: 'wcCode',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]


export const RuleProps = {
    name: [{ required: true, message: '组织/部门/职务名不能为空' }],
    type: [{ required: true, message: '类型不能为空' }],
}


export const FormProps = {
    id: '',
    parentId: '',
    name: '',
    type: '',
    wcCode:''
}


export const FilterItems = [
    {
        type: 'input',
        label: '组织名',
        key: 'name',
        placeholder:'请输入组织名'
    },
    {
        type: 'input',
        label: '编码',
        key: 'code',
        placeholder:'请输入编码'
    }
]


export const FormItems = [
    {
        type: 'treeSelect',
        label: '父级节点',
        key: 'parentId',
        isShow: true,
        data: [ ],
        placeholder:'请选择父级节点'
    },
    {
        type: 'select',
        label: '类型',
        key: 'type',
        isShow: true,
        data: [ ],
        placeholder:'请选择类型'
    },
    {
        type: 'input',
        label: '组织名',
        isShow: true,
        key: 'name',
        placeholder:'请输入组织名',
        maxLength: 50
    },
    {
        type: 'input',
        label:'部门编号',
        isShow: false,
        key: 'wcCode',
        placeholder:'请输入部门编号',
        maxLength: 50
    },

]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
    code: '',
}
